home *** CD-ROM | disk | FTP | other *** search
/ Practical Algorithms for Image Analysis / Practical Algorithms for Image Analysis.iso / TARFILE.GZ / tarfile / libtiff / contrib / mac-mpw / libtiff.make < prev    next >
Encoding:
Text File  |  1999-09-11  |  5.2 KB  |  203 lines

  1. #
  2. # Tag Image File Format Library
  3. #
  4. # Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994 Sam Leffler
  5. # Copyright (c) 1991, 1992, 1993, 1994 Silicon Graphics, Inc.
  6. # Permission to use, copy, modify, distribute, and sell this software and 
  7. # its documentation for any purpose is hereby granted without fee, provided
  8. # that (i) the above copyright notices and this permission notice appear in
  9. # all copies of the software and related documentation, and (ii) the names of
  10. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  11. # publicity relating to the software without the specific, prior written
  12. # permission of Sam Leffler and Silicon Graphics.
  13. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  14. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  15. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  16. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  17. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  18. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  19. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  20. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  21. # OF THIS SOFTWARE.
  22. #
  23.  
  24. #
  25. # Makefile for Mac using MPW 3.3.1 and MPW C 3.2.4
  26. #
  27. #  Note:  This file must be run through "mactrans" before it can
  28. #  be recognized by MPW as a valid makefile. The problem is that MPW
  29. #  uses special non-ASCII characters, which tend to get mangled when stored
  30. #  in unix tar files, etc. "mactrans" is built as part of the TIFF MPW build.
  31. #
  32. #
  33.  
  34. DEPTH   = ::
  35.  
  36. # FAX Options: If you do not wish to include the FAX options, uncomment
  37. # the first four definitions and comment out the next four 
  38. # definitions. Note that to build programs with the FAX libraries you
  39. # have to include "-model far" in your compile and link statements.
  40. #
  41. # Also, to build the fax code (including the tif_fax3sm.c file, which is
  42. # created by the MPW tool "mkg3states", also built below), you will
  43. # need to size the MPW program up to about 6 megabytes or so.
  44.  
  45. #FAX_OPTIONS = 
  46. #FAX_OBJECTS =     
  47. #FAX_SOURCES = tif_fax3.c 
  48. #FAX_CONFIG = 
  49.  
  50. FAX_OPTIONS = -model far
  51. FAX_OBJECTS =     tif_fax3.c.o tif_fax3sm.c.o
  52. FAX_SOURCES = tif_fax3.c tif_fax3sm.c
  53. FAX_CONFIG = -d CCITT_SUPPORT
  54.  
  55. NULL=
  56.  
  57. RM = delete -y -i 
  58. COPTS = 
  59.  
  60. LIBPORT=::port:libport.o
  61.  
  62. #
  63. .c.o %c4 .c
  64.     {C} -model far {CFLAGS} -s {Default} {DepDir}{Default}.c -o {TargDir}{Default}.c.o
  65.  
  66.  
  67. CONF_LIBRARY= %b6
  68.     -d HAVE_IEEEFP=1 %b6
  69.     -d BSDTYPES 
  70.  
  71. CONF_COMPRESSION= %b6
  72.     {FAX_CONFIG} %b6
  73.     -d COMPRESSION_SUPPORT %b6
  74.     -d PACKBITS_SUPPORT     %b6
  75.     -d LZW_SUPPORT     %b6
  76.     -d THUNDER_SUPPORT %b6
  77.     -d NEXT_SUPPORT 
  78.  
  79. CFLAGS=    {FAX_OPTIONS} {IPATH} {CONF_LIBRARY} {CONF_COMPRESSION} 
  80.  
  81. INCS=    tiff.h tiffio.h
  82.  
  83. SRCS=    %b6
  84.     {FAX_SOURCES} %b6
  85.     tif_apple.c %b6
  86.     tif_aux.c %b6
  87.     tif_close.c %b6
  88.     tif_codec.c %b6
  89.     tif_compress.c %b6
  90.     tif_dir.c %b6
  91.     tif_dirinfo.c %b6
  92.     tif_dirread.c %b6
  93.     tif_dirwrite.c %b6
  94.     tif_dumpmode.c %b6
  95.     tif_error.c %b6
  96.     tif_getimage.c %b6
  97.     tif_jpeg.c %b6
  98.     tif_flush.c %b6
  99.     tif_lzw.c %b6
  100.     tif_next.c %b6
  101.     tif_open.c %b6
  102.     tif_packbits.c %b6
  103.     tif_predict.c %b6
  104.     tif_print.c %b6
  105.     tif_read.c %b6
  106.     tif_swab.c %b6
  107.     tif_strip.c %b6
  108.     tif_thunder.c %b6
  109.     tif_tile.c %b6
  110.     tif_version.c %b6
  111.     tif_warning.c %b6
  112.     tif_write.c %b6
  113.     tif_zip.c %b6
  114.     {NULL}
  115.  
  116. OBJS=    %b6
  117.     {FAX_OBJECTS} %b6
  118.     tif_apple.c.o %b6
  119.     tif_aux.c.o %b6
  120.     tif_close.c.o %b6
  121.     tif_codec.c.o %b6
  122.     tif_compress.c.o %b6
  123.     tif_dir.c.o %b6
  124.     tif_dirinfo.c.o %b6
  125.     tif_dirread.c.o %b6
  126.     tif_dirwrite.c.o %b6
  127.     tif_dumpmode.c.o %b6
  128.     tif_error.c.o %b6
  129.     tif_getimage.c.o %b6
  130.     tif_jpeg.c.o %b6
  131.     tif_flush.c.o %b6
  132.     tif_lzw.c.o %b6
  133.     tif_next.c.o %b6
  134.     tif_open.c.o %b6
  135.     tif_packbits.c.o %b6
  136.     tif_predict.c.o %b6
  137.     tif_print.c.o %b6
  138.     tif_read.c.o %b6
  139.     tif_swab.c.o %b6
  140.     tif_strip.c.o %b6
  141.     tif_thunder.c.o %b6
  142.     tif_tile.c.o %b6
  143.     tif_version.c.o %b6
  144.     tif_warning.c.o %b6
  145.     tif_write.c.o %b6
  146.     tif_zip.c.o %b6
  147.     {NULL}
  148.  
  149. ALL=libtiff.o
  150.  
  151. all %c4 {ALL}
  152.  
  153. libtiff.o %c4 {OBJS}
  154.     Lib  {OBJS} -o libtiff.o
  155.     
  156.  
  157. {OBJS} %c4 tiffio.h tiff.h tiffcomp.h tiffiop.h tiffconf.h
  158.  
  159. #
  160. # The finite state machine tables used by the G3/G4 decoders
  161. # are generated by the mkg3states program.  On systems without
  162. # make these rules have to be manually carried out.
  163. #
  164. tif_fax3sm.c %c4 mkg3states tif_fax3.h
  165.         {RM} tif_fax3sm.c || set status 0
  166.     :mkg3states -c const tif_fax3sm.c
  167.  
  168. mkg3states.c.o %c4 mkg3states.c
  169.    C -model far  mkg3states.c -o mkg3states.c.o
  170.  
  171. mkg3states %c4%c4 mkg3states.c.o
  172.     Link -model far -d -c 'MPS ' -t MPST %b6
  173.         mkg3states.c.o %b6
  174.         {LIBPORT} %b6
  175.         "{CLibraries}"StdClib.o %b6
  176.         "{Libraries}"Stubs.o %b6
  177.         "{Libraries}"Runtime.o %b6
  178.         "{Libraries}"Interface.o %b6
  179.         -o mkg3states
  180.  
  181. ALPHA   = "{DEPTH}dist:tiff.alpha"
  182. VERSION = "{DEPTH}VERSION"
  183.  
  184. version.h %c4 {VERSION} {ALPHA}
  185.         Set VERSION1 `catenate {VERSION}` 
  186.         Set VERSION2 "{VERSION1}`streamedit -e "1 rep /%a5%c5 %c5 (%c5)%a81/ %a81" {ALPHA}`" 
  187.         delete -y -i version.h || set status 0
  188.     echo '#define VERSION "LIBTIFF, Version' {VERSION2} '\nCopyright (c) 1988-1995 Sam Leffler\nCopyright (c) 1991-1995 Silicon Graphics, Inc."' >version.h
  189.  
  190. tif_version.c.o %c4 version.h
  191.  
  192. clean %c4
  193.     {RM} {ALL}  || set status 0
  194.     {RM} {OBJS} || set status 0
  195.     {RM} mkg3states || set status 0
  196.     {RM} mkg3states.c.o || set status 0
  197.     {RM} tif_fax3sm.c%c5 || set status 0
  198.     {RM} version.h || set status 0
  199.  
  200.